package cn.hsa.xxx.bookData.service.impl;

import cn.hsa.xxx.bookData.bo.BookCommodityBO;
import cn.hsa.xxx.api.dto.BookCommodityDTO;
import cn.hsa.xxx.api.service.BookCommodityService;
import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;


@Slf4j
@Service
public class BookCommodityServiceImpl implements BookCommodityService {

    @Autowired
    private BookCommodityBO bookCommodityBO;

    @Override
    public BookCommodityDTO add(BookCommodityDTO bookCommodityDTO) {
        return bookCommodityBO.add(bookCommodityDTO);
    }

    @Override
    public String delete(String id) {
        return bookCommodityBO.delete(id);
    }

    @Override
    public BookCommodityDTO get(String id) {
        return bookCommodityBO.get(id);
    }

    @Override
    public String update(BookCommodityDTO bookCommodityDTO) {
        return bookCommodityBO.update(bookCommodityDTO);
    }

    @Override
    public List<BookCommodityDTO> getPage(int pageNo, int pageSize) {
        return bookCommodityBO.getPage(pageNo,pageSize);
    }
}
